/* custom css */

i {
  font-style: normal;
}

.flex {
  display: flex;
  align-items: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
}
.text-center {
  text-align: center;
}
.my-card {
  border-radius: 10px;
  background-color: #fff;
  padding: 15px;
}

/* el-table */
.el-table {
  color: var(--v3-body-text-color);
  .el-table__header {
    thead {
      th {
        background-color: #f3f3ff !important;
        color: var(--v3-body-text-color);
        font-weight: 600;
        &.el-table__cell {
          padding: 14px 0;
        }
        &:first-child {
          border-top-left-radius: 8px;
        }
        &:last-child {
          border-top-right-radius: 8px;
        }
      }
    }
  }
}
.el-table th.el-table__cell {
  user-select: text;
}
/* el-button */

.el-button--primary.is-plain {
  --el-button-bg-color: #fff;
  --el-button-border-color: var(--primary-button-color);
  border-width: 1px;
}

.el-button.el-button--primary:hover {
  background-color: var(--primary-button-color);
  border-color: var(--primary-button-color);
}

.el-button.is-link:hover {
  color: var(--primary-button-color);
}

/* el-dialog */
.el-dialog {
  border-radius: 20px;
  padding-top: 28px;
}
.el-dialog .el-dialog__header {
  text-align: center;
  padding-right: 0;
  .el-dialog__title {
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    font-size: 20px;
  }
}

.el-dialog.rounded {
  border-radius: 20px;
}
.el-dialog__headerbtn {
  height: 40px;
  width: 40px;
  background-color: #ecebeb;
  border-radius: 50%;
  right: 10px;
  top: 10px;
  text-align: center;
}

.el-dialog__headerbtn .el-icon.el-dialog__close {
  color: var(--v3-body-text-color);
  vertical-align: middle;
  font-size: 20px;
}
.el-dialog__footer {
  border-top: 1px solid #f0f0f0;
  .dialog-footer {
    text-align: center;
  }
}
// 自定义dialog  背景色
.custom-bg-dialog.el-dialog {
  padding: 0;
  overflow: hidden;
  background-color: #f7f7f7;
  .el-dialog__header {
    background-color: #fff;
    height: 90px;
    line-height: 90px;
  }
}

// el-card
.el-card {
  --el-card-border-radius: 10px;
  overflow: visible;
}
// 自定义 新 标签tag
.new-tag-custom {
  background-color: #f35f5e;
  color: #fff;
  font-size: 10px;
  line-height: 12px;
  padding: 1px 8px;
  border-radius: 14px;
  margin-right: 2px;
}
// 自定义选择器样式
.el-select.case-chart-selector {
  .el-select__wrapper {
    background-color: rgba(68, 88, 254, 0.1);
    box-shadow: none;
  }
  .el-select__wrapper.is-focused {
    box-shadow: none;
  }
  .el-select__placeholder {
    color: var(--primary-button-color);
    font-weight: 400;
  }
  .el-select__suffix {
    .el-icon.el-select__caret.el-select__icon {
      color: var(--primary-button-color);
    }
  }
}
// 图标+标题
.icon-title {
  color: rgba(0, 0, 0, 0.85);
  font-size: 18px;
  font-weight: 600;
  padding-bottom: 13px;
  .img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }
}
// tag 标签全局样式
// 带边框
.el-tag.el-tag--primary.el-tag--light {
  color: var(--primary-button-color);
  border-radius: 3px;
  border: 1px solid #c2c9ff;
  background: #eceeff;
  font-weight: 500;
}
.el-tag.el-tag--success.el-tag--light {
  color: #00ad65;
  background: #f7fcfa;
  border: 1px solid #94dcbe;
  border-radius: 3px;
  font-weight: 500;
}
.el-tag.el-tag--danger.el-tag--light {
  color: #f04040;
  border-radius: 3px;
  border: 1px solid #e97f7f;
  background: #fff7f7;
  font-weight: 500;
}
// 不带边框
.el-check-tag.el-check-tag--primary {
  color: var(--primary-button-color);
  border-radius: 3px;
  border: none;
  background: #eceeff;
  font-weight: 500;
  cursor: default;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--success {
  color: #00ad65;
  background: #f7fcfa;
  border: none;
  border-radius: 3px;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--danger {
  color: #f04040;
  border-radius: 3px;
  border: none;
  background: #fff7f7;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--warning {
  color: #e9b327;
  border-radius: 3px;
  border: none;
  background: #fffaf3;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--info {
  color: #666;
  border-radius: 3px;
  border: none;
  background: #eee;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--skyblue {
  color: #128bed;
  border-radius: 3px;
  border: none;
  background: #e2f1fc;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--cyan {
  color: #00ada3;
  border-radius: 3px;
  border: none;
  background: #eafcfc;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--bluegreen {
  color: #0ca6c8;
  border-radius: 3px;
  border: none;
  background: #ddf9ff;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--purple {
  color: #2d3a7e;
  border-radius: 3px;
  border: none;
  background: #f3f4ff;
  font-weight: 500;
  padding: 4px 10px;
}
.el-check-tag.el-check-tag--orange {
  color: #ff732d;
  border-radius: 3px;
  border: none;
  background: #fff7f3;
  font-weight: 500;
  padding: 4px 10px;
}

.nowrap {
  white-space: nowrap;
}
// 颜色渐变字体
.gradient-text-one {
  background-image: linear-gradient(99deg, #0072ff 5.62%, #00eaff 48.98%, #01aaff 94.38%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
// 消息等级tag样式
.message-tag {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.positive-tag {
  color: #00ad65;
  border-color: #94dcbe;
  background: #f7fcfa;
}
.tips-tag {
  color: #4458fe;
  border-color: #c2c9ff;
  background: #eceeff;
}
.warn-tag {
  color: #e9b327;
  border-color: #f8c77d;
  background: #fffaf3;
}
.mediumRisk-tag {
  color: #ff732d;
  border-color: #f8a67d;
  background: #fff7f3;
}
.highRisk-tag {
  color: #f04040;
  border-color: #e97f7f;
  background: #fff7f7;
}
